
$(document).on('click', 'a.accordion-toggle', function(e) {
    $(e.target).parent().siblings('.accordion-body').on('hidden', function(e) {
        e.stopPropagation();
    });
});

function gettableData() {
	var request = $.ajax({
		type: "GET",
		url: "/ajax/get-Tablebids/",
		dataType: 'json',
		data: {
			'course_num': window.bidit_globals.g_currCourseProfile
		},
		success: function(data) {
			var chardata = new google.visualization.DataTable();

			chardata.addColumn('string', 'group');
			chardata.addColumn('number', 'available');
			chardata.addColumn('number', 'accepted');
			chardata.addColumn('number', 'declined');
			chardata.addColumn('number', 'bidding points');
			chardata.addRows(data);


			var table = new google.visualization.Table(document.getElementById('%%table_div'));
			table.draw(chardata, {
				showRowNumber: true
			});

		}
	});


}






